package com.suny.AccountInfo.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * 人员管理表
 * @TableName account_info
 */
@Schema(description = "人员实体")
@TableName(value ="account_info")
@Data
public class AccountInfo implements Serializable {
    /**
     * 主键
     */
    @Schema(name = "id", description = "主键")
    @TableId(type = IdType.AUTO)
    private Integer id;
    /**
     * 用户账号
     */
    @Schema(name = "account", description = "用户账号")
    private String account;

    /**
     * 用户姓名
     */
    @Schema(name = "accName", description = "用户姓名")
    private String accName;

    /**
     * 用户密码，默认手机号后6位
     */
    @Schema(name = "password", description = "用户密码，默认手机号后6位")
    private String password;

    /**
     * 手机号11位
     */
    @Schema(name = "accPhone", description = "手机号11位")
    private String accPhone;

    /**
     * 是否启用(1:启用，0:停用)
     */
    @Schema(name = "status", description = "是否启用(1:启用，0:停用)")
    private Integer status;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "createTime", description = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(name = "updateTime", description = "更新时间")
    private Date updateTime;

}